package com.lovo.homework0201.service.impl;

import com.lovo.homework0201.dao.IUserDao;
import com.lovo.homework0201.entity.UserEntity;
import com.lovo.homework0201.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    IUserDao userDao;

    @Override
    public UserEntity login(String userName, String passWord) {
        UserEntity user = userDao.findByUserNameAndPassWord(userName, passWord);
        return user;
    }
}
